package Trip;

public class TripPurpose {

	public double costADay;
	public enum tripPurposes {
		SHOPPING,
		RECREATION,
		SANATORIUM
	}
	public tripPurposes tripPurpose;

	public tripPurposes getTripPurpose() {
		return tripPurpose;
	}

	public TripPurpose() {
		super();
	}

	public TripPurpose(tripPurposes tripPurpose) {
		super();
		this.tripPurpose = tripPurpose;
	}

	public double getCost() {
		switch (this.tripPurpose) {
		case SHOPPING:
			costADay = 50;
			break;
		case RECREATION:
			costADay = 100;
			break;
		case SANATORIUM:
			costADay = 150;
			break;
		}
		return costADay;
	}

}
